class crond::ldlm {
  file { "/root/bin/ldlm_monitor":
    mode       =>  '755',
    owner      =>  'root',
    group      =>  'root',
    source     =>  "puppet:///modules/${module_name}/ldlm_monitor",
    recurse    =>   true,
    ensure     =>   directory,
    force      =>   true,
    require    =>   File['/root/bin'],
  }
  file { "/etc/logrotate.d/ldlm_monitor":
    mode       =>  '644',
    owner      =>  'root',
    group      =>  'root',
    source     =>  "puppet:///modules/${module_name}/ldlm_monitor/ldlm_monitor",
  }
  cron{'ldlm_monitor':
    command => '/root/bin/ldlm_monitor/ldlm_monitor.pl | tee -a  /var/log/ldlm_monitor.log ',
    user    => 'root',
    minute  => '*/1',
    hour    => '*',
  }
}
